import './setwallpaper'
import './downloadimage'
import './setImageDiretory'
import { app, BrowserWindow, ipcMain, Menu } from 'electron'

ipcMain.on('setTitle', (event, title) => {
  //获取用于控制网页的webContents对象
  const webContents = event.sender
  //获取窗口
  const win = BrowserWindow.fromWebContents(webContents)
  //设置窗口标题
  win.setTitle(title)
})
